package com.example.placean.service.impl;

/**
 * 采用装饰者模式设计需求
 * 抽象构件角色
 * @author jiangshoutong
 */
public abstract  class Order {

    private String  des;

    private float price;

    public Order(String des, float price) {
        this.des = des;
        this.price = price;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public abstract float cost();




}
